import 'package:flutter/material.dart';

class ImageNames {
  static const String root = "assets/images/"; //图片根目录

  ///
  ///app通用头像
  ///
  static const String appBarBack = "assets/images/app_bar_back.png"; //返回
  static const String appShare = "assets/images/app_share.png"; //分享
  static const String appLocation = "assets/images/app_location.png"; //定位
  static const String appScanCode = "assets/images/app_scan_code.png"; //扫码
  static const String appSearch = "assets/images/app_search.png"; //搜索
  static const String appLike = "assets/images/app_like.png"; //点赞
  static const String appComment = "assets/images/app_comment.png"; //评论
  static const String appArrowRightSmall =
      "assets/images/app_arrow_right_small.png"; //右箭头小

  ///页面状态
  static const String pageStateEmpty =
      'assets/images/page_state_empty.svg'; //页面无数据
  static const String pageStateError =
      'assets/images/page_state_error.svg'; //页面加载失败

}

class EventBusKey {
  //最底部栏目切换
  static const String bottomTabChanged = "kBottomTabChanged";

  //TabNavigatorPage页面切换
  static const String tabNavigatorJumpTo = "KTabNavigatorJumpTo";

  //关注状态改变
  static const String followChange = "kFollowChange";

  //刷新地方栏目
  static const String refreshLocalColumns = "kRefreshLocalColumns";

  //刷新消息未读数量
  static const String refreshNewsCount = "refreshNewsCount";

  //刷新手机号显示
  static const String phoneChanged = "phoneChanged";

  //第三方登录成功
  static const String thirdLoginSuccess = "kThirdLoginSuccess";

  //更改用户选择的标签
  static const String selectLabelUpdate = "kSelectLabelUpdate";

  //登录页面 -自动填充注册完成的账号密码
  static const String autoFillAccountPassword = "autoFillAccountPassword";

  //更新定位
  static const String refreshLocation = "refreshLocation";

  //机构订阅状态改变
  static const String organSubscribeStatusChange = "organSubscribeStatusChange";

  static const String refreshFriendProfile = "refreshFriendProfile";

  /// 刷新好友详情页面
  static const String refreshFriendList = "refreshFriendList";

  /// 刷新好列表
  static const String refreshFriendNews = "refreshFriendNews"; //刷新好友-消息列表

  //推送消息
  static const String pushMessage = "KPushMessage";

  // 考试完成通知
  static const String examCompleted = 'examCompleted';

  // 课程考试查看证书
  static const String courseExamViewCer = 'courseExamViewCer';

  // 列表登录完成通知
  static const String courseListLogin = 'courseListLogin';

  static const String magicLinkMessage = "kMagicLinkMessage"; //魔链消息
  //小视频相关
  static const String routePushed = "kRoutePushed"; //路由push
  static const String routePoped = "kRoutePoped"; //路由pop
  static const String pauseVideo = "kPauseVideo"; //暂停视频

  static const String tabNavigatorPaused = "kTabNavigatorPaused"; //离开了主页面
  static const String tabNavigatorResumed = "kTabNavigatorResumed"; //重新回到了主页面
}

///app颜色的常量
class AppColors {
  static const Color clDivider = cl0F360000; //分割线颜色
  static const Color clPrimary = clE22415; //主题颜色
  static const Color clBg = clF5F5F5; //页面背景

  static const Color clE22415 = Color(0xFFE22415); //主题颜色
  static const Color clF5F5F5 = Color(0xFFF5F5F5); //页面背景

  ///字体
  static const Color clDE000 = Color(0xDE000000); //text1
  static const Color cl99000 = Color(0x99000000); //text2
  static const Color cl61000 = Color(0x61000000); //text3

  static const Color cl33000 = Color(0x33000000); //disabled
  static const Color cl0F360000 = Color(0x0F360000); //分割线颜色

  ///白色
  static const Color clFFF = Color(0xFFFFFFFF);
  static const Color clDEFFF = Color(0xDEFFFFFF);
  static const Color clFBFAFA = Color(0xFFFBFAFA);
  static const Color clFAFBFB = Color(0xFFFAFBFB);
  static const Color cl61FFF = Color(0x61FFFFFF);
  static const Color clF6F4F4 = Color(0xFFF6F4F4);
  static const Color clF4F6F8 = Color(0xFFF4F6F8);

  ///黑色
  static const Color cl000 = Color(0xFF000000);
  static const Color cl01 = Color(0xFF010101);
  static const Color cl101828 = Color(0xFF101828); //const
  static const Color cl09101D = Color(0xFF09101D);
  static const Color cl747B84 = Color(0xFF747B84);
  static const Color cl959AA5 = Color(0xFF959AA5);
  static const Color clC8CAD0 = Color(0xFFC8CAD0);
  static const Color cl1A000 = Color(0x1A000000);
  static const Color cl14000 = Color(0x14000000);
  static const Color cl0F000 = Color(0x0F000000);
  static const Color cl0D000 = Color(0x0D000000);
  static const Color cl00000 = Color(0x00000000);

  ///红色
  static const Color clF04438 = Color(0xFFF04438);
  static const Color clF1908A = Color(0xFFF1908A);
  static const Color cl1FE22415 = Color(0x1FE22415);
  static const Color clFFE8E8 = Color(0xFFFFE8E8);
  static const Color clF2EBEB = Color(0xFFF2EBEB);

  ///黄色
  static const Color clF79009 = Color(0xFFF79009);
  static const Color clFAAF00 = Color(0xFFFAAF00);
  static const Color clFEFAE9 = Color(0xFFFEFAE9);

  ///蓝色
  static const Color cl3B9FE6 = Color(0xFF3B9FE6);

  ///青色
  static const Color cl1AAD19 = Color(0xFF1AAD19);

  ///背景色 #F3F3F3
  static const clF3F3F3 = Color(0xffF3F3F3);
}

///标签颜色
List<Color> tagBarColors = [
  AppColors.clE22415,
  AppColors.clFAAF00,
  AppColors.cl3B9FE6,
];

class AppLocalStorageKey {
  static const String appNetConfig = "appNetConfig"; //app当前net配置
  static const String closeGuide = "kCloseGuide"; //已关闭浏览页
  static const String token = "token"; //token
  static const String user = "user"; //user
  static const String city = "city"; //city
}

///切换页面id
class PageId {
  static const int home = 0; //首页
  static const int purchaseTicketsHome = 1; //购票
  static const int blockBooking = 2; //包场
  static const int information = 3; //信息
  static const int mine = 4; //我的

  static const int ticketsHot = 100; //购票-正在热播
  static const int ticketsComingSoon = 101; //购票-即将上映
  static const int ticketsCinema = 110; //购票-影院
}

///线条 #0x0F360000
const MaterialColor lineColor = MaterialColor(
  // 0x0F360000,
  0x0F360000,
  <int, Color>{},
);
const double kPageScrollBottomSpacing = 20.0; //页面滑动底部间距
const double kPageMargin = 16.0; //页面左右边距
const double kAppBarHeight = 48; //apptab高度
